self.AMP_CONFIG={"v":"012102130314001","type":"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"adsense-ad-size-optimization":1,"amp-accordion-display-locking":1,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"expand-json-targeting":1,"flexAdSlots":0.05,"intersect-resources":0,"ios-fixed-no-transfer":0,"fie-resources":1,"visibility-trigger-improvements":1,"layout-aspect-ratio-css":0.1,"sticky-ad-transition":0.02};/*AMP_CONFIG*/var global=self;self.AMP=self.AMP||[];try{(function(_){if(self.AMP&&!Array.isArray(self.AMP))return; 'use strict';var g,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function ba(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c ["+b+"]")}function Lb(a,b){var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1} function Rb(a,b){a.classList.add("i-amphtml-scoped");var c=b.replace(/^|,/g,"$&.i-amphtml-scoped "),d=a.querySelectorAll(c);a.classList.remove("i-amphtml-scoped");return d}function Qb(a,b){if(void 0!==wb?wb:wb=xb(a))return a.querySelector(b.replace(/^|,/g,"$&:scope "));var c=Rb(a,b);return void 0===c[0]?null:c[0]}function Sb(a,b){for(var c=a.length,d=0;dc.length?!1:-1!==c.indexOf("noopener",f)}c||(e=a.open(b,"_top"));return e}function Ub(a){try{a.focus()}catch(b){}}function Vb(a){return a.parent&&a.parent!=a}function Wb(a,b,c){c=c||{};var d=a.ownerDocument.createEvent("Event");d.data=c;d.initEvent(b,Ab.bubbles,Ab.cancelable);a.dispatchEvent(d)};function Xb(a){var b=Object.create(null),c;for(c in a)if(Yb(a,c)){var d=a[c];b[c]=Sa(d)?Xb(d):d}return b}function Zb(a){return JSON.parse(a)}function Yb(a,b){return null==a||"object"!=typeof a?!1:Object.prototype.hasOwnProperty.call(a,b)};function $b(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):ac(unescape(encodeURIComponent(a)))}function ac(a){for(var b=new Uint8Array(a.length),c=0;ch.readyState||(100>h.status||599this.status;this.headers=new ic(a);this.bodyUsed=!1;this.body=null;this.url=a.responseURL}hc.prototype.clone=function(){return new hc(this.Xa)};function jc(a){a.bodyUsed=!0;return Promise.resolve(a.Xa.responseText)}hc.prototype.text=function(){return jc(this)};hc.prototype.json=function(){return jc(this).then(Zb)};hc.prototype.arrayBuffer=function(){return jc(this).then($b)}; function fc(a){if(void 0===a)return"GET";a=a.toUpperCase();dc.includes(a);return a}function ic(a){this.Xa=a}ic.prototype.get=function(a){return this.Xa.getResponseHeader(a)};ic.prototype.has=function(a){return null!=this.Xa.getResponseHeader(a)}; function kc(a,b){var c=b=void 0===b?{}:b,d=J();a=Object.assign({},{status:200,statusText:"OK",responseText:a?String(a):"",getResponseHeader:function(f){var h=String(f).toLowerCase();return sb.call(d,h)?d[h]:null}},c);a.status=void 0===c.status?200:parseInt(c.status,10);if(A(c.headers))c.headers.forEach(function(f){var h=f[1];d[String(f[0]).toLowerCase()]=String(h)});else if(Sa(c.headers))for(var e in c.headers)d[String(e).toLowerCase()]=String(c.headers[e]);c.statusText&&(a.statusText=String(c.statusText)); hc.call(this,a)}p(kc,hc);function lc(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function mc(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,f=0;f=d&&(b[c]=Math.random()'],Ie={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},Je={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}}, Ke={"AMP-AD":!0,"AMP-ANIM":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-PAGE":!0,"AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-TWITTER":!0},Le=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i,Me=null;function Ne(a){for(var b in Ie)if(Ie[b]==a)return Ie[b]} function Oe(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function Pe(a){if("number"==typeof a)return a+"px";if(a&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(a))return/^\d+(\.\d+)?$/.test(a)?a+"px":a}function Qe(a){I(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return I(/[a-z]+/i.exec(a),"Failed to read units from %s",a)[0]} function Re(a){a=parseFloat(a);return Ta(a)?a:void 0};var Se;function Te(a,b,c,d){var e=a,f=c;var h=function(m){try{return f(m)}catch(n){throw self.__AMP_REPORT_ERROR(n),n;}};var k=Ue(),l=!1;d&&(l=d.capture);e.addEventListener(b,h,k?d:l);return function(){e&&e.removeEventListener(b,h,k?d:l);h=e=f=null}}function Ue(){if(void 0!==Se)return Se;Se=!1;try{var a={get capture(){Se=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return Se};function Ve(a,b,c,d){return Te(a,b,c,d)}function We(a,b,c,d){var e=c,f=Te(a,b,function(h){try{e(h)}finally{e=null,f()}},d);return f}function Xe(a,b){var c,d=new Promise(function(e){c=We(a,"click",e,void 0)});d.then(c,c);b&&b(c);return d}function Ye(a){return!!(a.complete||"complete"==a.readyState||Ze(a)&&0Math.random()?v():Jf(a,b).then(function(c){if(!c){var d=new XMLHttpRequest;d.open("POST",.1>Math.random()?Xa.betaErrorReporting:Xa.errorReporting,!0);d.send(JSON.stringify(b))}})} function Jf(a,b){a=Sc(a);if(!a.isSingleDoc())return Promise.resolve(!1);var c=a.getSingleDoc();if(!c.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var d=R(c);return d.hasCapability("errorReporter")?d.isTrustedViewer().then(function(e){if(!e)return!1;d.sendMessage("error",K({m:b.m,a:b.a,s:b.s,el:b.el,ex:b.ex,v:b.v,pt:b.pt,jse:b.jse}));return!0}):Promise.resolve(!1)} function Hf(a,b,c,d,e,f){var h=a;e&&(h=e.message?e.message:String(e));h||(h="Unknown error");a=h;var k=!(!e||!e.expected);if(!/_reported_/.test(a)&&"CANCELLED"!=a){var l=!(self&&self.window),m=Math.random();if(-1!=a.indexOf("Failed to load:")||"Script error."==a||l)if(k=!0,.001=a.N.length)return{type:dg,index:a.Ld};var d=a.N.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c=a.N.length)return{type:dg,index:c};d=a.N.charAt(c)}if(b&&(kg(d)||"."==d&&c+1=l){f=d;break}}if(-1==f)return{type:0,index:c};a=a.N.substring(c,f+1);c=f;return{type:hg,value:a,index:c}}for(f=c+1;f=a};function lg(a,b){for(var c=[],d=0,e=0;eb;c.response=a;throw c;})};function yg(a){this.win=a;a=Sc(a);this.kg=a.isSingleDoc()?a.getSingleDoc():null}g=yg.prototype;g.Cg=function(a,b){var c=arguments,d=this;return sg(this.win,this.kg,a,b).then(function(e){if(e)return e;ng(b.body)&&(b.body=b.body.getFormData());return d.win.fetch.apply(null,c)})}; function zg(a,b,c){c=void 0===c?{}:c;b=tg(a.win,b,c);c=vg(a.win,b,c);return a.Cg(b,c).then(function(d){return d},function(d){var e=S(b).origin;throw D().createExpectedError("XHR","Failed fetching ("+e+"/...):",d&&d.message);})}g.fetchJson=function(a,b){return this.fetch(a,wg(b))};g.fetchText=function(a,b){return this.fetch(a,ug(b,"text/plain"))}; g.xssiJson=function(a,b){return b?a.text().then(function(c){return c.startsWith(b)?Zb(c.slice(b.length)):(D().warn("XHR",'Failed to strip missing prefix "'+b+'" in fetch response.'),Zb(c))}):a.json()};g.fetch=function(a,b){b=ug(b);return zg(this,a,b).then(function(c){return xg(c)})};g.sendSignal=function(a,b){return zg(this,a,b).then(function(c){return xg(c)})};g.getCorsUrl=function(a,b){return se(a,b)};function Ag(a){yg.call(this,a);this.Fb=J()}p(Ag,yg);Ag.prototype.fetch=function(a,b){var c=this,d=!b||!b.method||"GET"===b.method,e=Bg(this,a,b&&b.headers&&b.headers.Accept||""),f=!!this.Fb[e];if(d&&f)return this.Fb[e].then(function(k){return k.clone()});var h=yg.prototype.fetch.call(this,a,b);d&&(this.Fb[e]=h.then(function(k){delete c.Fb[e];return k.clone()},function(k){delete c.Fb[e];throw k;}));return h};function Bg(a,b,c){var d=re(b,qe(a.win.location));return le(d)+c};function Cg(a){this.B=a;this.h=R(this.B);this.me=null;this.P=P(this.B.win)}Cg.prototype.isSupported=function(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()};Cg.prototype.getScopedCid=function(a){var b=this;if(!this.h.isCctEmbedded())return Promise.resolve(null);this.me||(this.me=this.Eb("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.me.then(function(c){return c?Dg(b,c,a):null})}; Cg.prototype.Eb=function(a,b){var c=this,d=b=void 0===b?!0:b,e=K({publisherOrigin:qe(this.B.win.location)});return this.P.timeoutPromise(3E4,O(this.B.win,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:e}),"fetchCidTimeout").then(function(f){return f.json().then(function(h){if(h.optOut)return null;var k=h.publisherClientId;return!k&&d&&h.alternateUrl?c.Eb(h.alternateUrl+"?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc",!1):k})}).catch(function(f){f&&f.response?f.response.json().then(function(h){G().error("CacheCidApi", JSON.stringify(h))}):f&&"fetchCidTimeout"==f.message?G().expectedError("CacheCidApi",f):G().error("CacheCidApi",f);return null})};function Dg(a,b,c){b=b+";"+c;return O(a.B.win,"crypto").sha384Base64(b).then(function(d){return"amp-"+d})};function Eg(a,b){try{var c=a.document.cookie}catch(k){c=""}var d=c;if(!d)return null;var e=d.split(";");for(a=0;ac.message.indexOf("secure origin")&&D().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return jh(b).then(function(){return b.sha384(a)})})}catch(c){return G().error("Crypto","SubtleCrypto failed, fallback to closure lib.", c),jh(this).then(function(){return b.sha384(a)})}};g.sha384Base64=function(a){return this.sha384(a).then(function(b){return Lg(b)})};g.uniform=function(a){return this.sha384(a).then(function(b){for(var c=0,d=2;0<=d;d--)c=(c+b[d])/256;return c})};function jh(a){return a.Ub?a.Ub:a.Ub=Uc(a.A).preloadExtension("amp-crypto-polyfill").then(function(){return O(a.A,"crypto-polyfill")})}g.isPkcsAvailable=function(){return!!this.subtle&&!1!==this.A.isSecureContext}; g.importPkcsKey=function(a){this.isPkcsAvailable();var b=this.Sg?$b(JSON.stringify(a)):a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])};g.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)};var kh=["prefetch","preload","preconnect","dns-prefetch"];function lh(a){this.B=a;this.ie=this.Md=null} lh.prototype.get=function(){if(this.Md)return this.Md;var a=this.B,b=a.getUrl(),c=pe(b),d=a.getRootNode();b=d&&d.AMP&&d.AMP.canonicalUrl;if(!b){var e=d.querySelector("link[rel=canonical]");b=e?S(e.href).href:c}var f=String(Math.floor(1E4*a.win.Math.random())),h=mh(a.win.document);d=nh(a.win.document);var k=oh(a);return this.Md={get sourceUrl(){return pe(a.getUrl())},canonicalUrl:b,pageViewId:f,get pageViewId64(){this.ie||(this.ie=ah(a.win));return this.ie},linkRels:h,viewport:d,replaceParams:k}}; function mh(a){var b=J();if(a.head){a=a.head.querySelectorAll("link[rel]");for(var c={},d=0;d=b)e=c-1;else break}this.F.splice(c,0,{item:a,priority:b})};zh.prototype.forEach=function(a){for(var b=this.F.length;b--;)a(this.F[b].item)}; zh.prototype.dequeue=function(){return this.F.length?this.F.pop().item:null};ca.Object.defineProperties(zh.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.F.length}}});var Ah=["_top","_blank"]; function Bh(a){var b=this;this.ampdoc=a;this.ma=a.getRootNode();this.J=Yc(this.ampdoc);this.h=R(this.ampdoc);this.O=Cc(this.ampdoc,"history");this.ta=Q(this.ampdoc.win);this.Rg=this.ta.isIos()&&this.ta.isSafari();this.Lb=Vb(this.ampdoc.win)&&this.h.isOvertakeHistory();this.Sd=this.ma!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent();this.Qg="inabox"==z(this.ampdoc.win).runtime;this.Tf=this.ma.nodeType==Node.DOCUMENT_NODE?this.ma.documentElement:this.ma;this.yb=this.Jg.bind(this);this.ma.addEventListener("click", this.yb);this.ma.addEventListener("contextmenu",this.yb);this.Fe=!1;yh(this.ampdoc).then(function(c){b.Fe=c});this.zf=this.gb=!1;Promise.all([this.h.isTrustedViewer(),this.h.getViewerOrigin()]).then(function(c){b.gb=c[0];c=c[1];"string"==typeof c&&(c=S(c));c=Xa.localhostRegex.test(c.origin);b.zf=c});this.fd=null;this.Ee=new zh;this.If=new zh}g=Bh.prototype;g.cleanup=function(){this.yb&&(this.ma.removeEventListener("click",this.yb),this.ma.removeEventListener("contextmenu",this.yb))}; g.openWindow=function(a,b,c,d){var e="";!this.ta.isIos()&&this.ta.isChrome()||d||(e+="noopener");var f=Tb(a,b,c,e);f&&!d&&(f.opener=null)}; g.navigateTo=function(a,b,c,d){var e=d=void 0===d?{}:d;d=void 0===e.target?"_top":e.target;e=void 0===e.opener?!1:e.opener;b=Ch(this,b);var f=Dc(this.Tf,"url");if(f.isProtocolValid(b)){I(Ah.includes(d),"Target '"+d+"' not supported.");var h=f.getSourceUrl(a.location);b=f.resolveRelativeUrl(b,h);if("_blank"==d)this.openWindow(a,b,d,e);else{if(c&&(this.fd||(this.fd=Dh(this)),this.fd.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}}else D().error("navigation","Cannot navigate to invalid protocol: "+ b)};g.navigateToAmpUrl=function(a,b){return this.h.hasCapability("a2a")?(this.h.sendMessage("a2aNavigate",K({url:a,requestedBy:b})),!0):!1};function Dh(a){return(a=a.ma.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map(function(b){return b.trim()}):[]} g.Jg=function(a){if(!a.defaultPrevented){var b=Kb(a.__AMP_CUSTOM_LINKER_TARGET__||a.target,"A");if(b&&b.href)if("click"==a.type){Eh(this,b);var c=Fh(this,b.href),d;if(d=!Gh(this,a,b,c)){if(this.Lb){d=b.ownerDocument.defaultView;var e=b.href,f=c.protocol;"ftp:"==f?(Tb(d,e,"_blank"),a.preventDefault(),d=!0):(f=/^(https?|mailto):$/.test(f),this.Rg&&!f?(Tb(d,e,"_top"),a.preventDefault(),d=!0):d=!1)}else d=!1;d=!d}if(d)if(d=Fh(this,""),Hh(c)!=Hh(d)&&(Ih(this,b,a),c=Fh(this,b.href)),e=c,c=Hh(e),f=Hh(d), e.hash&&c==f)Jh(this,a,e,d);else{e=(b.getAttribute("target")||"").toLowerCase();(this.Sd||this.Qg)&&"_top"!=e&&"_blank"!=e&&(e="_blank",b.setAttribute("target",e));f=this.ampdoc.win;var h=Q(f);b=R(b);d.search&&h.isSafari()&&13<=h.getMajorVersion()&&b.isProxyOrigin()&&b.isEmbedded()&&Kh(f,d,e);this.viewerInterceptsNavigation(c,"intercept_click")&&a.preventDefault()}}else"contextmenu"==a.type&&(Eh(this,b),Ih(this,b,a))}};function Ih(a,b,c){a.Ee.forEach(function(d){d(b,c)})} function Ch(a,b){a.If.forEach(function(c){b=c(b)});return b} function Eh(a,b){var c=null;if(a.Fe&&!a.Sd){a=S(a.ampdoc.win.location.href);var d=x(a.search);a=[];for(var e=0;e")?(b.preventDefault(),!0):!1:!1} function Kh(a,b,c){function d(){var h=a.location.href;h==f?(G().info("navigation","Restored iframe URL with query string:",e),a.history.replaceState(null,"",e)):G().error("navigation","Unexpected iframe URL change:",h,f)}G().info("navigation","Removing iframe query string before navigation:",b.search);var e=b.href,f=""+b.origin+b.pathname+b.hash;a.history.replaceState(null,"",f);"_blank"===c?a.setTimeout(d,0):a.addEventListener("pageshow",function l(k){k.persisted&&(d(),a.removeEventListener("pageshow", l))})}function Jh(a,b,c,d){if(Q(a.ampdoc.win).isIe()){var e=c.hash.substring(1),f=a.ampdoc.getElementById(e);f&&(/^(?:a|select|input|button|textarea)$/i.test(f.tagName)||(f.tabIndex=-1),Ub(f))}b.preventDefault();if(!a.Sd){var h=c.hash.slice(1),k=null;if(h){var l=String(h).replace(ub,vb);k=a.ma.getElementById(h)||a.ma.querySelector('a[name="'+l+'"]')}c.hash!=d.hash?a.O.replaceStateForTarget(c.hash).then(function(){Lh(a,k,h)}):Lh(a,k,h)}}g.registerAnchorMutator=function(a,b){this.Ee.enqueue(a,b)}; g.registerNavigateToMutator=function(a,b){this.If.enqueue(a,b)};function Lh(a,b,c){b?(a.J.scrollIntoView(b),P(a.ampdoc.win).delay(function(){return a.J.scrollIntoView(b)},1)):G().warn("navigation","failed to find element with id="+c+" or a[name="+c+"]")}function Fh(a,b){return Dc(a.Tf,"url").parse(b)} g.viewerInterceptsNavigation=function(a,b){var c=this.h.hasCapability("interceptNavigation"),d=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");if(!c||!d||!this.gb&&!this.zf)return!1;this.h.sendMessage("navigateTo",K({url:a,requestedBy:b}));return!0};function Hh(a){return""+a.origin+a.pathname+a.search};function Mh(a){Rc(a).then(function(b){b&&a.getRootNode().addEventListener("submit",Nh,!0)})} function Nh(a){if(!a.defaultPrevented){var b=a.target;if(b&&"FORM"==b.tagName){(b.classList.contains("i-amphtml-form")?b.hasAttribute("amp-novalidate"):b.hasAttribute("novalidate"))||!b.checkValidity||b.checkValidity()||a.preventDefault();for(var c=b.elements,d=0;d=b.C&&!a?v():b.o.pop(b.C).then(function(c){b.ba(c)})},"goBack")};g.replaceStateForTarget=function(a){var b=this,c=this.B.win.location.hash;return this.push(function(){b.B.win.location.replace(c||"#")}).then(function(){b.o.replaceStateForTarget(a)})}; g.getFragment=function(){return this.o.getFragment()};g.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.o.updateFragment(a)};g.ba=function(a){this.C=a.stackIndex;Uh(this,a)};function Uh(a,b){if(!(a.C>=a.Va.length-1)){for(var c=[],d=a.Va.length-1;d>a.C;d--)a.Va[d]&&(c.push(a.Va[d]),a.Va[d]=void 0);a.Va.splice(a.C+1);if(0b.win.history.length-2&&(k=b.win.history.length-2,b.Aa(Zh(f,{stackIndex:k})));k=void 0==h?k+1:h=b)return Promise.resolve(a.C);a.sb=Xh(a,a.C-b);var c=bi(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.C)})} g.vf=function(a,b,c){a||(a={});var d=this.C+1;a["AMP.History"]=d;this.ph(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.Nc(a));a=Zh(a,{stackIndex:d});this.Aa(a)};g.replaceStateForTarget=function(a){var b=this;$h(this,function(){b.win.removeEventListener("popstate",b.Jc);try{b.win.location.replace(a)}finally{b.win.addEventListener("popstate",b.Jc)}b.Kd();return v()})}; g.Kd=function(a,b,c){a||(a={});var d=Math.min(this.C,this.win.history.length-1);a["AMP.History"]=d;this.Nc(a,b,c);a=Zh(a,{stackIndex:d});this.Aa(a)};g.Aa=function(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.C!=a.stackIndex&&(G().fine("History","stack index changed: "+this.C+" -> "+a.stackIndex),this.C=a.stackIndex,this.ba&&this.ba(a))};g.getFragment=function(){var a=this.win.location.hash;a=a.substr(1);return Promise.resolve(a)};g.updateFragment=function(a){return this.replace({fragment:a})}; function Zh(a,b){var c=Object.assign({},a&&a.data||{},b.data||{});return Object.assign({},a||{},b,{data:c})}function ci(a,b){var c=this;this.win=a;this.h=b;this.C=0;this.ba=null;this.Kh=this.h.onMessage("historyPopped",function(d){void 0!==d.newStackIndex&&(d.stackIndex=d.newStackIndex);di(d)?c.Aa(d):G().warn("History",'Ignored unexpected "historyPopped" data:',d)})}g=ci.prototype;g.replaceStateForTarget=function(a){this.win.location.replace(a)};g.cleanup=function(){this.Kh()}; g.setOnStateUpdated=function(a){this.ba=a};function ei(a,b,c){if(di(a))return a;G().warn("History",'Ignored unexpected "%s" data:',c,a);return b}function di(a){return!!a&&void 0!==a.stackIndex}g.push=function(a){var b=this,c=Object.assign({},{stackIndex:this.C+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",c).then(function(d){d=ei(d,c,"pushHistory");b.Aa(d);return d})}; g.pop=function(a){var b=this;if(a>this.C)return this.get();a=K({stackIndex:this.C});return this.h.sendMessageAwaitResponse("popHistory",a).then(function(c){var d=K({stackIndex:b.C-1});c=ei(c,d,"popHistory");b.Aa(c);return c})}; g.replace=function(a){var b=this;if(a&&a.url){if(!this.h.hasCapability("fullReplaceHistory")){var c=K({stackIndex:this.C});return Promise.resolve(c)}var d=a.url.replace(/#.*/,"");a.url=d}var e=Object.assign({},{stackIndex:this.C},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",e,!0).then(function(f){f=ei(f,e,"replaceHistory");b.Aa(f);return f})};g.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.C,title:""})}; g.Aa=function(a){var b=a.stackIndex;this.C!=b&&(G().fine("History","stackIndex: "+this.C+" -> "+b),this.C=b,this.ba&&this.ba(a))};g.getFragment=function(){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(a){if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a}):Promise.resolve("")};g.updateFragment=function(a){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("replaceHistory",K({fragment:a}),!0):v()}; function fi(a){var b=R(a);b.isOvertakeHistory()||a.win.__AMP_TEST_IFRAME?b=new ci(a.win,b):(M(a.win,"global-history-binding",Wh),b=O(a.win,"global-history-binding"));return new Sh(a,b)};function gi(){X.apply(this,arguments)}p(gi,X);gi.createLoaderLogoCallback=X.createLoaderLogoCallback;gi.prerenderAllowed=X.prerenderAllowed;function hi(a,b){this.A=a;this.Na=b;this.Fa={};this.Vb=null}g=hi.prototype;g.start=function(){this.Vb=this.Fa;this.Fa={}};g.resolveMatchQuery=function(a){return"1"===this.Oc(a,ii,"1")};g.resolveListQuery=function(a){return this.Oc(a,ji,"")};g.complete=function(){for(var a in this.Vb)a in this.Fa||ki(this.Vb[a],this.Na,!1);this.Vb=null};g.dispose=function(){for(var a in this.Fa)ki(this.Fa[a],this.Na,!1);this.Fa={}}; g.Oc=function(a,b,c){if(!a||!a.trim())return c;var d=this.Fa[a]||this.Vb[a];d||(d=b(this.A,a),ki(d,this.Na,!0));this.Fa[a]=d;a:{for(a=0;a=f||"A"<=f&&"Z">=f||"0"<=f&&"9">=f);d--);if(d>=h)return null}else for(d=c.length-2;0<=d&&(f=c.charAt(d),"%"==f||"."==f||"a"<=f&&"z">=f||"A"<=f&&"Z">=f||"0"<=f&&"9">=f);d--);0<=d?(f=c.substring(0, d+1).trim(),c=c.substring(d+1).trim()):f=void 0;return c?{query:f?a.matchMedia(f):null,value:c}:null}}).filter(function(c){return c})}function ki(a,b,c){for(var d=0;db.right)return{distance:!1};if(a.bottomb.bottom)e=a.top-b.bottom,1==c&&(d=2);else return{distance:!0};return{distance:e,scrollPenalty:d,viewportHeight:a.height}}; g.isWithinViewportRatio=function(a,b){if("boolean"===typeof a)return a;var c=b||this.getDistanceViewportRatio(),d=c.distance;return"boolean"==typeof d?d:de.timeRemaining()){var f=2E3-(Date.now()-d);0>=f||e.didTimeout?(G().fine("CHUNK","Timed out",2E3,e.didTimeout),b(e)):(G().fine("CHUNK","Rescheduling with",f,e.timeRemaining()),a.requestIdleCallback(c,{timeout:f}))}else G().fine("CHUNK","Running idle callback with ",15),b(e)}var d=Date.now();a.requestIdleCallback(c,{timeout:2E3})};var Ei,Fi=[];function Gi(a){function b(){return c.apply(this,arguments)||this}var c=Hi(a);p(b,c);return b} function Hi(a){function b(){var d=c.call(this)||this;d.createdCallback();return d}if(a.__AMP_BASE_CE_CLASS)return a.__AMP_BASE_CE_CLASS;var c=a.HTMLElement;p(b,c);b.prototype.createdCallback=function(){this.Jb=this.ud=!1;this.nc=null;this.readyState="loading";this.everAttached=!1;this.j=this.B=null;this.layout_="nodisplay";this.ra=0;this.Tb=this.Td=!1;this.warnOnMissingOverflow=!0;this.layoutScheduleTime=this.la=this.sizerElement=void 0;var d=a.__AMP_EXTENDED_ELEMENTS&&a.__AMP_EXTENDED_ELEMENTS[this.localName]; (this.qa=d===gi?null:d||null)||Fi.push(this);this.impl_=null;this.tb=1;this.eg=0;this.fb=this.Ma=void 0;this.I=new pi;this.qa&&this.I.signal("ready-upgrade");var e=yc(a);this.Oh=e&&e.isPerformanceTrackingOn();this.ib=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)};b.prototype.signals=function(){return this.I};b.prototype.getAmpDoc=function(){return this.B};b.prototype.getResources=function(){return this.j};b.prototype.isUpgraded=function(){return 2== this.tb};b.prototype.whenUpgraded=function(){return this.I.whenSignal("upgraded")};b.prototype.upgrade=function(d){this.fb||1!=this.tb||(this.qa=d,this.I.signal("ready-upgrade"),this.everAttached&&this.cg())};b.prototype.getUpgradeDelayMs=function(){return this.eg};b.prototype.yd=function(d,e){this.impl_=d;this.eg=a.Date.now()-e;this.tb=2;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.mg();this.Da("amp:attached");this.getResources().upgraded(this);this.I.signal("upgraded")}; b.prototype.mg=function(){"nodisplay"!=this.layout_&&this.impl_&&!this.impl_.isLayoutSupported(this.layout_)&&(I(this.getAttribute("layout"),"The element did not specify a layout attribute. Check https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details."),I(!1,"Layout not supported: "+this.layout_))};b.prototype.isBuilt=function(){return this.ud};b.prototype.whenBuilt=function(){return this.I.whenSignal("built")}; b.prototype.getLayoutPriority=function(){return this.impl_?this.impl_.getLayoutPriority():3};b.prototype.getDefaultActionAlias=function(){this.isUpgraded();return this.impl_.getDefaultActionAlias()};b.prototype.isBuilding=function(){return!!this.nc};b.prototype.buildInternal=function(){var d=this;this.isUpgraded();return this.nc?this.nc:this.nc=(new Promise(function(e,f){var h=d.impl_,k=d.Dg();k?Oc(d,"consentPolicyManager","amp-consent").then(function(l){return l?l.whenPolicyUnblock(k):!0}).then(function(l){l? e(h.buildCallback()):f(Error("BLOCK_BY_CONSENT"))}):e(h.buildCallback())})).then(function(){d.preconnect(!1);d.ud=!0;d.classList.add("i-amphtml-built");d.classList.remove("i-amphtml-notbuilt");d.classList.remove("amp-notbuilt");d.I.signal("built");d.Jb&&d.cf();d.Ma&&P(d.ownerDocument.defaultView).delay(d.xg.bind(d),1);if(!d.getPlaceholder()){var e=d.createPlaceholder();e&&d.appendChild(e)}},function(e){d.I.rejectSignal("built",e);Ef(e)||Bf(e,d);throw e;})};b.prototype.whenLoaded=function(){return this.I.whenSignal("load-end")}; b.prototype.ensureLoaded=function(d){var e=this;return this.whenBuilt().then(function(){var f=e.Pa();if(4!=f.getState()&&((3!=f.getState()||f.isMeasureRequested())&&f.measure(),f.isDisplayed()))return e.getResources().scheduleLayoutOrPreload(f,!0,d,!0),e.whenLoaded()})};b.prototype.preconnect=function(d){var e=this;this.isUpgraded();d?this.impl_.preconnectCallback(d):vi(this.getAmpDoc(),function(){e.ownerDocument&&e.ownerDocument.defaultView&&e.impl_.preconnectCallback(d)})};b.prototype.isAlwaysFixed= function(){return this.impl_?this.impl_.isAlwaysFixed():!1};b.prototype.updateLayoutBox=function(d,e){var f=e=void 0===e?!1:e;if(this.isBuilt())this.onMeasure(f)};b.prototype.onMeasure=function(){this.isBuilt();try{this.impl_.onLayoutMeasure()}catch(d){Bf(d,this)}};b.prototype.pf=function(){void 0!==this.sizerElement||"responsive"!==this.layout_&&"intrinsic"!==this.layout_||(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement||null};b.prototype.vh=function(d){if("responsive"=== this.layout_)W(d,"paddingTop","0");else if("intrinsic"===this.layout_){var e=d.querySelector(".i-amphtml-intrinsic-sizer");e&&e.setAttribute("src","")}};b.prototype.Mg=function(){var d=this,e=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),f=this.ownerDocument.defaultView;e!=!!this.ib&&f&&(e?(this.ib=new hi(f,function(){return d.Ge()}),this.Ge()):this.gf())};b.prototype.gf=function(){this.ib&&(this.ib.dispose(),this.ib= null)};b.prototype.Ge=function(){var d=this.ib;if(d){d.start();var e=this.getAttribute("media")||null,f=e?d.resolveMatchQuery(e):!0;this.classList.toggle("i-amphtml-hidden-by-media-query",!f);var h=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");h&&W(this,"width",d.resolveListQuery(h));if(h="responsive"===this.layout_?this.getAttribute("heights"):null){var k=this.pf();k&&W(k,"paddingTop",d.resolveListQuery(h))}d.complete();this.Pa().requestMeasure()}};b.prototype.applySize= function(d,e,f){var h=this.pf();h&&(this.sizerElement=null,this.vh(h),this.dh(function(){h&&Fb(h)}));void 0!==d&&W(this,"height",d,"px");void 0!==e&&W(this,"width",e,"px");f&&(null!=f.top&&W(this,"marginTop",f.top,"px"),null!=f.right&&W(this,"marginRight",f.right,"px"),null!=f.bottom&&W(this,"marginBottom",f.bottom,"px"),null!=f.left&&W(this,"marginLeft",f.left,"px"));this.Og()&&this.Ch();Wb(this,"amp:size-changed")};b.prototype.connectedCallback=function(){void 0===Ei&&(Ei="content"in self.document.createElement("template")); Ei||void 0!==this.fb||(this.fb=!!Kb(this,"template"));if(!this.fb&&!this.Jb&&Hb(this)){this.Jb=!0;this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));if(!this.B){var d=this.ownerDocument.defaultView,e=Sc(d).getAmpDoc(this);this.B=e;var f=this.tagName.toLowerCase();this.qa||e.declaresExtension(f)||Uc(d).installExtensionForDoc(e,f)}this.j||(this.j=Wc(this.B));this.getResources().add(this);if(this.everAttached){var h= this.reconstructWhenReparented();h&&this.Qf();this.isUpgraded()&&(h&&this.getResources().upgraded(this),this.cf(),this.Da("amp:attached"))}else{this.everAttached=!0;try{var k=Q(this.ownerDocument.defaultView).isIe();d=void 0===k?!1:k;var l=this.getAttribute("i-amphtml-layout");if(l){var m=Ne(l);"responsive"!=m&&"intrinsic"!=m||!this.firstElementChild?"nodisplay"==m&&(Ee(this,!1),this.style.display=""):(this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0)&&this.sizerElement.setAttribute("slot", "i-amphtml-svc");var n=m}else{var q=this.getAttribute("layout"),t=this.getAttribute("width"),w=this.getAttribute("height"),u=this.getAttribute("sizes"),r=this.getAttribute("heights"),y=q?Ne(q):null;I(void 0!==y,'Invalid "layout" value: %s, %s',q,this);var F=t&&"auto"!=t?Pe(t):t;I(void 0!==F,'Invalid "width" value: %s, %s',t,this);var sa=w&&"fluid"!=w?Pe(w):w;I(void 0!==sa,'Invalid "height" value: %s, %s',w,this);var jb;if(!(jb=y&&"fixed"!=y&&"fixed-height"!=y||F&&sa)){var va=this.tagName;va=va.toUpperCase(); jb=void 0===Je[va]}if(jb){var E=F;var C=sa}else{var V=this.tagName.toUpperCase();if(!Je[V]){var da=this.ownerDocument,ia=V.replace(/^AMP\-/,""),ja=da.createElement(ia);ja.controls=!0;De(ja,{position:"absolute",visibility:"hidden"});da.body.appendChild(ja);Je[V]={width:(ja.offsetWidth||1)+"px",height:(ja.offsetHeight||1)+"px"};da.body.removeChild(ja)}var kb=Je[V];E=F||"fixed-height"==y?F:kb.width;C=sa||kb.height}var H=y?y:E||C?"fluid"==C?"fluid":!C||E&&"auto"!=E?C&&E&&(u||r)?"responsive":"fixed":"fixed-height": "container";"fixed"!=H&&"fixed-height"!=H&&"responsive"!=H&&"intrinsic"!=H||I(C,'The "height" attribute is missing: %s',this);"fixed-height"==H&&I(!E||"auto"==E,'The "width" attribute must be missing or "auto": %s',this);"fixed"!=H&&"responsive"!=H&&"intrinsic"!=H||I(E&&"auto"!=E,'The "width" attribute must be present and not "auto": %s',this);"responsive"==H||"intrinsic"==H?I(Qe(E)==Qe(C),'Length units should be the same for "width" and "height": %s, %s, %s',t,w,this):I(null===r,'"heights" attribute must be missing: %s', this);this.classList.add("i-amphtml-layout-"+H);Oe(H)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==H)Ee(this,!1),this.style.display="";else if("fixed"==H)De(this,{width:E,height:C});else if("fixed-height"==H)W(this,"height",C);else if("responsive"==H){var zc=this.ownerDocument.defaultView;null==Me&&(Me=U(zc,"layout-aspect-ratio-css")&&zc.CSS&&zc.CSS.supports&&zc.CSS.supports("aspect-ratio: 1/1")||!1);if(Me)W(this,"aspect-ratio",Re(E)+"/"+Re(C));else{var Ac=this.ownerDocument.createElement("i-amphtml-sizer"); Ac.setAttribute("slot","i-amphtml-svc");De(Ac,{paddingTop:Re(C)/Re(E)*100+"%"});this.insertBefore(Ac,this.firstChild);this.sizerElement=Ac}}else if("intrinsic"==H){var Yd=Td(this)(He);Yd.firstElementChild.setAttribute("src",d&&this.ownerDocument?Ge(this.ownerDocument,Re(E),Re(C)):'data:image/svg+xml;charset=utf-8,');this.insertBefore(Yd,this.firstChild);this.sizerElement=Yd}else"fill"!=H&&"container"!=H&&("flex-item"== H?(E&&W(this,"width",E),C&&W(this,"height",C)):"fluid"==H&&(this.classList.add("i-amphtml-layout-awaiting-size"),E&&W(this,"width",E),W(this,"height",0)));this.setAttribute("i-amphtml-layout",H);n=H}this.layout_=n;this.Mg()}catch(tl){Bf(tl,this)}this.qa&&this.cg();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.Da("amp:stubbed"))}this.toggleLoading(!0)}};b.prototype.Og=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")}; b.prototype.Ch=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.cg=function(){var d=this;if(!this.fb&&1==this.tb){var e=new this.qa(this);this.tb=4;var f=a.Date.now(),h=e.upgradeCallback();h?"function"==typeof h.then?h.then(function(k){d.yd(k||e,f)}).catch(function(k){d.tb=3;ob(k)}):this.yd(h,f):this.yd(e,f)}};b.prototype.disconnectedCallback=function(){this.disconnect(!1)};b.prototype.cf=function(){this.ud&&this.impl_.attachedCallback()};b.prototype.disconnect=function(d){this.fb|| !this.Jb||!d&&Hb(this)||(d&&this.classList.remove("i-amphtml-element"),this.Jb=!1,this.getResources().remove(this),this.impl_&&this.impl_.detachedCallback(),this.toggleLoading(!1),this.gf())};b.prototype.Da=function(){};b.prototype.prerenderAllowed=function(){return this.hasAttribute("noprerender")?!1:this.qa?this.qa.prerenderAllowed(this):!1};b.prototype.isBuildRenderBlocking=function(){return this.impl_?this.impl_.isBuildRenderBlocking():!1};b.prototype.createPlaceholder=function(){return this.impl_? this.impl_.createPlaceholderCallback():null};b.prototype.createLoaderLogo=function(){return this.qa?this.qa.createLoaderLogoCallback(this):{}};b.prototype.renderOutsideViewport=function(){return this.impl_?this.impl_.renderOutsideViewport():!1};b.prototype.idleRenderOutsideViewport=function(){return this.impl_?this.impl_.idleRenderOutsideViewport():!1};b.prototype.getLayoutBox=function(){return this.Pa().getLayoutBox()};b.prototype.getLayoutSize=function(){return this.Pa().getLayoutSize()};b.prototype.getOwner= function(){return this.Pa().getOwner()};b.prototype.getIntersectionChangeEntry=function(){var d=this.impl_?this.impl_.getIntersectionElementLayoutBox():this.getLayoutBox(),e=this.getOwner(),f=Yc(this.getAmpDoc()).getRect(),h=e&&e.getLayoutBox(),k=mc(d,h,f)||lc(0,0,0,0);e=k.width*k.height;var l=d.width*d.height;e=0===l?0:e/l;if(l=f)k=oc(k,-f.left,-f.top),d=oc(d,-f.left,-f.top),l=oc(l,-f.left,-f.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-qi,rootBounds:l, boundingClientRect:d,intersectionRect:k,intersectionRatio:e}};b.prototype.Pa=function(){return this.getResources().getResourceForElement(this)};b.prototype.getResourceId=function(){return this.Pa().getId()};b.prototype.isRelayoutNeeded=function(){return this.impl_?this.impl_.isRelayoutNeeded():!1};b.prototype.getImpl=function(d){var e=this;d=void 0===d?!0:d;return(d?this.whenBuilt():this.whenUpgraded()).then(function(){return e.impl_})};b.prototype.getApi=function(){return this.getImpl().then(function(d){return d.getApi()})}; b.prototype.getLayout=function(){return this.layout_};b.prototype.layoutCallback=function(d){var e=this;this.isBuilt();if(d.aborted)return Promise.reject(Df());this.Da("amp:load-start");var f=0==this.ra;this.I.reset("unload");f&&this.I.signal("load-start");this.toggleLoading(!0);var h=tb(function(){return e.impl_.layoutCallback()});this.preconnect(!0);this.classList.add("i-amphtml-layout");return h.then(function(){if(d.aborted)throw Df();f&&e.I.signal("load-end");e.readyState="complete";e.ra++;e.toggleLoading(!1); e.Td||(e.impl_.firstLayoutCompleted(),e.Td=!0,e.Da("amp:load-end"))},function(k){if(d.aborted)throw Df();f&&e.I.rejectSignal("load-end",k);e.ra++;e.toggleLoading(!1);throw k;})};b.prototype.isPaused=function(){return this.Tb};b.prototype.pauseCallback=function(){this.Tb||(this.Tb=!0,this.isBuilt()&&this.impl_.pauseCallback())};b.prototype.resumeCallback=function(){this.Tb&&(this.Tb=!1,this.isBuilt()&&this.impl_.resumeCallback())};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1; this.I.signal("unload");var d=this.impl_.unlayoutCallback();d&&this.Qf();this.Da("amp:unload");return d};b.prototype.Qf=function(){this.ra=0;this.Td=!1;this.I.reset("render-start");this.I.reset("load-start");this.I.reset("load-end");this.I.reset("ini-load")};b.prototype.unlayoutOnPause=function(){return this.impl_?this.impl_.unlayoutOnPause():!1};b.prototype.reconstructWhenReparented=function(){return this.impl_?this.impl_.reconstructWhenReparented():!1};b.prototype.collapse=function(){this.impl_&& this.impl_.collapse()};b.prototype.collapsedCallback=function(d){this.impl_&&this.impl_.collapsedCallback(d)};b.prototype.expand=function(){this.impl_&&this.impl_.expand()};b.prototype.mutatedAttributesCallback=function(d){this.impl_&&this.impl_.mutatedAttributesCallback(d)};b.prototype.enqueAction=function(d){this.isBuilt()?this.lf(d,!1):(void 0===this.Ma&&(this.Ma=[]),this.Ma.push(d))};b.prototype.xg=function(){var d=this;if(this.Ma){var e=this.Ma;this.Ma=null;e.forEach(function(f){d.lf(f,!0)})}}; b.prototype.lf=function(d,e){try{this.impl_.executeAction(d,e)}catch(f){ob("Action execution failed:",f,d.node.tagName,d.method)}};b.prototype.Dg=function(){var d=this.getAttribute("data-block-on-consent");if(null===d)if((d=this.getAmpDoc().getMetaByName("amp-consent-blocking"))?(d=d.toUpperCase().replace(/\s+/g,""),d=d.split(",").includes(this.tagName)):d=!1,d)d="default",this.setAttribute("data-block-on-consent",d);else return null;return""!=d&&"default"!=d||!this.impl_?d:this.impl_.getConsentPolicy()}; b.prototype.getRealChildNodes=function(){return Ob(this,function(d){return!Ii(d)})};b.prototype.getRealChildren=function(){return Mb(this,function(d){return!Ii(d)})};b.prototype.getPlaceholder=function(){return Nb(this,function(d){return d.hasAttribute("placeholder")&&!("placeholder"in d)})};b.prototype.togglePlaceholder=function(d){if(d){var e=this.getPlaceholder();e&&e.classList.remove("amp-hidden")}else{/^[\w-]+$/.test("placeholder");e=(void 0!==wb?wb:wb=xb(this))?this.querySelectorAll("> [placeholder]".replace(/^|,/g, "$&:scope ")):Rb(this,"> [placeholder]");for(var f=0;f img:not([placeholder])"));this.K=this.K||new Image;this.K.setAttribute("decoding","async");this.element.id&&this.K.setAttribute("amp-img-id",this.element.id);"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error("amp-img","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying element.")); if(this.K&&!this.element.getAttribute("sizes")){var a=this.element.getAttribute("srcset");if(a&&!/[0-9]+x(?:,|$)/.test(a)&&(a=this.element.getLayoutSize().width,this.K.hasAttribute("sizes")?a>this.Xf:1)){var b=this.getViewport().getWidth(),c="(max-width: "+b+"px) "+a+"px, ",d=a+"px";"fixed"!==this.getLayout()&&(d=Math.max(Math.round(100*a/b),100)+"vw");this.K.setAttribute("sizes",c+d);this.Xf=a}}this.propagateAttributes(Ni,this.K);this.propagateDataset(this.K);Fe(this.K);this.applyFillContent(this.K, !0);a=this.element;b=this.K;a.hasAttribute("object-fit")&&W(b,"object-fit",a.getAttribute("object-fit"));a.hasAttribute("object-position")&&W(b,"object-position",a.getAttribute("object-position"));this.element.appendChild(this.K)}};g.reconstructWhenReparented=function(){return!1};g.layoutCallback=function(){var a=this;this.rc();var b=this.K;this.$c=Ve(b,"load",function(){return Pi(a)});this.Zc=Ve(b,"error",function(){return Qi(a)});return 0>=this.element.getLayoutSize().width?v():this.loadPromise(b)}; g.unlayoutCallback=function(){this.Zc&&(this.Zc(),this.Zc=null);this.$c&&(this.$c(),this.$c=null);var a=this.K;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Fb(a),this.K=null);return!0};g.firstLayoutCompleted=function(){var a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")?Ce(a,{opacity:0}):this.togglePlaceholder(!1)}; function Pi(a){!a.kc&&a.K.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.K.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})}function Qi(a){a.kc&&(a.getVsync().mutate(function(){a.K.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)}),a.kc=!1)} g.propagateDataset=function(a){for(var b in a.dataset)b in this.element.dataset||delete a.dataset[b];for(var c in this.element.dataset)c.startsWith("ampBind")&&"ampBind"!==c||a.dataset[c]!==this.element.dataset[c]&&(a.dataset[c]=this.element.dataset[c])};function Ri(a,b,c){var d=this;this.P=P(a);this.Kg=b;this.wg=c||0;this.va=-1;this.fe=0;this.Ta=!1;this.pg=function(){d.Ic()}}Ri.prototype.isPending=function(){return-1!=this.va};Ri.prototype.schedule=function(a){var b=a||this.wg;this.Ta&&10>b&&(b=10);var c=Date.now()+b;return!this.isPending()||-10>c-this.fe?(this.cancel(),this.fe=c,this.va=this.P.delay(this.pg,b),!0):!1};Ri.prototype.Ic=function(){this.va=-1;this.fe=0;this.Ta=!0;this.Kg();this.Ta=!1}; Ri.prototype.cancel=function(){this.isPending()&&(this.P.cancel(this.va),this.va=-1)};function Si(a){this.win=a;this.ng=this.eh.bind(this);this.og=this.fh.bind(this);this.nd=this.Ne=this.od=null;this.qc="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0=this.Gf?We(this.win.document,"mousemove",this.od):G().fine("Input","mouse detection failed")};function Ui(){X.apply(this,arguments)}p(Ui,X);Ui.createLoaderLogoCallback=X.createLoaderLogoCallback;Ui.prerenderAllowed=function(){return!0};Ui.prototype.isLayoutSupported=function(a){return"container"==a||Oe(a)};Ui.prototype.buildCallback=function(){if("container"!=this.getLayout()){var a=this.win.document.createElement("div");this.applyFillContent(a);this.getRealChildNodes().forEach(function(b){a.appendChild(b)});this.element.appendChild(a)}};function Vi(a,b){return Uc(a.win).installExtensionForDoc(a,"amp-loader").then(function(){return Nc(b,"loader","amp-loader")})}function Wi(a,b,c,d,e){var f=e=void 0===e?a.win.Date.now():e,h=b.ownerDocument.createElement("div");Vi(a,b).then(function(k){var l=a.win.Date.now()-f;k.initializeLoader(b,h,l,c,d)});return h};function Xi(a,b){var c=void 0===c?{}:c;var d=c.needsRootBounds;return new b.IntersectionObserver(a,{threshold:c.threshold,root:Vb(b)&&d?b.document:void 0})}new WeakMap;new WeakMap;var Yi=['
'];function Zi(a){this.B=a;a=a.win;var b=this.inViewport_.bind(this);this.Pd=Xi(function(c){return c.forEach(b)},a);this.La=new WeakMap}g=Zi.prototype;g.dispose=function(){this.Pd.disconnect()};g.track=function(a){this.Pd.observe(a)};g.untrack=function(a){this.Pd.unobserve(a);this.af(a)}; g.inViewport_=function(a){var b=a.boundingClientRect,c=b.width,d=b.height;b=a.target;a=a.isIntersecting&&20=a){b=c-1;break}-1!=b&&this.O.splice(0,b+1)}; g.hasDescendantsOf=function(a){this.win.document.activeElement&&aj(this,this.win.document.activeElement);for(var b=0;b src attribute must start with "https://" or "//". Invalid value: '+b);return d.call(c,b).then(function(e){if(a.win){var f=a.win;var h=a.Kc;h&&"no-referrer"!==h&&D().error("pixel","Unsupported referrerPolicy: %s", h);f="no-referrer"===h?lj(f,e):mj(f,e);G().info("amp-pixel","pixel triggered: ",e);return f}})}})};function oj(a){this.T=a.navigator;this.A=a}g=oj.prototype;g.isAndroid=function(){return/Android/i.test(this.T.userAgent)};g.isIos=function(){return/iPhone|iPad|iPod/i.test(this.T.userAgent)};g.isSafari=function(){return/Safari/i.test(this.T.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()};g.isChrome=function(){return/Chrome|CriOS/i.test(this.T.userAgent)&&!this.isEdge()&&!this.isOpera()}; g.isFirefox=function(){return/Firefox|FxiOS/i.test(this.T.userAgent)&&!this.isEdge()};g.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.T.userAgent)};g.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.T.userAgent)};g.isEdge=function(){return/Edge/i.test(this.T.userAgent)};g.isWebKit=function(){return/WebKit/i.test(this.T.userAgent)&&!this.isEdge()};g.isWindows=function(){return/Windows/i.test(this.T.userAgent)}; g.isStandalone=function(){return this.isIos()&&this.T.standalone||this.isChrome()&&this.A.matchMedia("(display-mode: standalone)").matches};g.isBot=function(){return/bot/i.test(this.T.userAgent)}; g.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:pj(this,/\sVersion\/(\d+)/,1):this.isChrome()?pj(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?pj(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?pj(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?pj(this,/MSIE\s(\d+)/,1):this.isEdge()?pj(this,/Edge\/(\d+)/,1):0};function pj(a,b,c){if(!a.T.userAgent)return 0;a=a.T.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)} g.getIosVersionString=function(){if(!this.T.userAgent||!this.isIos())return"";var a=this.T.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""};g.getIosMajorVersion=function(){var a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])};function qj(a){return"loading"!=a.readyState&&"uninitialized"!=a.readyState}function rj(a){return"complete"==a.readyState}function sj(a,b){tj(a,qj,b)}function tj(a,b,c){var d=b(a);if(d)c(a);else{var e=function(){b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function uj(a){return new Promise(function(b){sj(a,b)})}function vj(a){return new Promise(function(b){tj(a,rj,b)})};var wj=[""],xj=null;function yj(a){this.Bd=a.document;this.Jd=a.document.head;this.Sb={};this.fg={};this.ta=Q(a);this.Sb[S(a.location.href).origin]=!0;a:{if(!xj){var b=a.document.createElement("link");var c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}xj={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=xj}this.oc=b;this.P=P(a)} yj.prototype.url=function(a,b,c){var d=this;a.whenFirstVisible().then(function(){d.fc(a,b,c)})}; yj.prototype.fc=function(a,b,c){if(zj(b)){a=S(b).origin;b=Date.now();var d=this.Sb[a];if(d&&bc)a.clearInterval(d),b(),f||G().error("ie-media-bug","IE media never resolved")},10)})}function Ij(a){var b="(min-width: "+(a.innerWidth-1)+"px) AND (max-width: "+(a.innerWidth+1+"px)");try{return a.matchMedia(b).matches}catch(c){return G().error("ie-media-bug","IE matchMedia failed: ",c),!0}};function Jj(a){var b=this;this.ampdoc=a;this.win=a.win;this.h=R(a);this.ja=this.h.isRuntimeOn();this.Pg=!1;this.xh=0;this.j=[];this.sd=this.Ue=this.De=0;this.ha=this.ampdoc.isVisible();this.Cb=!1;this.mf=!0;this.jd=!1;this.pc=-1;this.Sa=!0;this.qb=-1;this.Zd=this.vc=0;this.Ic=new Ri(this.win,function(){return b.doPass()});this.Pf=new Ri(this.win,function(){b.Sa=!0;b.schedulePass()});this.pa=new Fj;this.F=new Fj;this.rd=this.sg.bind(this);this.fa=[];this.wa=[];this.Rd=!1;this.J=Yc(this.ampdoc);this.G= Xc(this.win);this.hd=new $i(this.win);this.Ce=!1;this.bb=0;this.hb=!1;this.Hc=[];this.Cd=[];this.nh=U(this.win,"build-close-to-viewport");this.rg=U(this.win,"build-in-chunks");this.Mc=U(this.win,"remove-task-timeout");this.nf=new L;this.jg=new Cj(this.ampdoc.getVisibilityState());this.Y=null;this.xf=!1;Ej(this.win);if(U(this.win,"bento")||"21068801"===ye(this.win)||tf(this.win.document)){var c=Vb(this.win);a=this.ampdoc.isSingleDoc()&&c?this.win.document:null;try{this.Y=new IntersectionObserver(function(d){return b.intersect(d)}, {root:a,rootMargin:"250% 31.25%"}),this.Sa=!1}catch(d){G().warn("Resources","Falling back to classic Resources:",d)}}this.J.onChanged(function(d){b.vc=b.win.Date.now();b.Zd=d.velocity;d.relayoutAll&&(b.Sa=!0,b.hb=!0);b.Sa&&b.Y&&b.j.forEach(function(e){return e.invalidatePremeasurementAndRequestMeasure()});b.schedulePass()});this.J.onScroll(function(){b.vc=b.win.Date.now()});this.ampdoc.onVisibilityChanged(function(){-1==b.pc&&b.ampdoc.isVisible()&&(b.pc=b.win.Date.now());b.schedulePass()});this.h.onRuntimeState(function(d){G().fine("Resources", "Runtime state:",d);b.ja=d;b.schedulePass(1)});vi(this.ampdoc,function(){Kj(b,b.jg);b.schedulePass(0)});Lj(this);this.Y||(this.Wc=qf(this.win,function(d){d=d.target;d.nodeType!==Node.ELEMENT_NODE||d===b.J.getScrollingElement()||b.Cd.includes(d)||(b.Cd.push(d),b.schedulePass(70))},250),Ve(this.win.document,"scroll",this.Wc,{capture:!0,passive:!0}))}g=Jj.prototype;g.isIntersectionExperimentOn=function(){return!!this.Y}; g.intersect=function(a){this.xf=!0;a.forEach(function(b){var c=b.boundingClientRect;Z(b.target).premeasure(c)});this.schedulePass()}; function Lj(a){a.ampdoc.whenReady().then(function(){a.Cb=!0;a.Ve();a.wa=null;O(a.win,"input").setupInputModeClasses(a.ampdoc);Gj(a.win);if(!a.Y){var b=Hj(a.win),c=function(){return a.Pf.schedule()};b?b.then(c):c();Promise.race([$e(a.win),P(a.win).promise(3100)]).then(c);a.win.document.fonts&&"loaded"!=a.win.document.fonts.status&&a.win.document.fonts.ready.then(c)}})}g.get=function(){return this.j.slice(0)};g.getAmpdoc=function(){return this.ampdoc};g.getResourceForElement=function(a){return Z(a)}; g.getResourceForElementOptional=function(a){return Z(a)};g.getScrollDirection=function(){return Math.sign(this.Zd)||1};g.add=function(a){this.De++;1==this.De&&this.J.ensureReadyForElements();var b=Z(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?(b.requestMeasure(),G().fine("Resources","resource reused:",b.debugid)):(b=new li(++this.xh,a,this),G().fine("Resources","resource added:",b.debugid));this.j.push(b);this.Y?this.Y.observe(a):this.Pf.schedule(1E3)}; function Mj(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=c,f=d;if(a.ja||a.Pg)if("prerender"!=a.ampdoc.getVisibilityState()||b.prerenderAllowed())if(!a.nh||f||b.isBuildRenderBlocking()||b.renderOutsideViewport()||Nj(a)&&b.idleRenderOutsideViewport())a.Cb?Oj(a,b,f):b.isBuilt()||b.isBuilding()||e&&a.wa.includes(b)||(a.wa.push(b),a.Ve())} g.Ve=function(){if(!this.Rd)try{this.Rd=!0;for(var a=0;aa.Ue||a.ampdoc.hasBeenVisible())||b.isBuildRenderBlocking())if(c=b.build())G().fine("Resources","build resource:",b.debugid),a.Ue++,a.sd++,c.then(function(){return a.schedulePass()},function(d){Pj(a,b);if(!Ef(d))throw d;})}g.remove=function(a){(a=Z(a))&&Pj(this,a)}; function Pj(a,b){var c=a.j.indexOf(b);-1!=c&&a.j.splice(c,1);b.isBuilt()&&b.pauseOnRemove();a.Y&&a.Y.unobserve(b.element);3===b.getState()&&b.layoutCanceled();Qj(a,b,!0);G().fine("Resources","resource removed:",b.debugid)}g.upgraded=function(a){a=Z(a);Mj(this,a);G().fine("Resources","resource upgraded:",a.debugid)};g.updateLayoutPriority=function(a,b){var c=Z(a);c.updateLayoutPriority(b);this.F.forEach(function(d){d.resource==c&&(d.priority=b)});this.schedulePass()};g.schedulePass=function(a){return this.Ic.schedule(a)}; g.updateOrEnqueueMutateTask=function(a,b){for(var c=null,d=0;dMath.abs(a.Zd)&&500=c.bottom-e||0==w&&t.bottom+Math.min(va,0)>=c.bottom- e)E=!0;else if(1va&&c.top+m<-va)continue;f?(m+=va,l.push(b.H)):a.fa.push(b.H);continue}else Sj(a,b.Za,t)?E=!0:0>va||0>w||0>u||(b.H.newHeight==t.height?a.G.run({measure:function(C){return function(V){V.resize=!1;var da=C.Za.element.parentElement;if(da){for(var ia=da.getLayoutSize&&da.getLayoutSize().width||da.offsetWidth,ja=C.ic,kb=0;kbia)return;V.resize=!0}}}(b),mutate:function(C){return function(V){V.resize&& C.H.resource.changeSize(C.H.newHeight,C.H.newWidth,C.R);C.H.resource.overflowCallback(!V.resize,C.H.newHeight,C.H.newWidth,C.R)}}(b)},{}):b.H.resource.overflowCallback(!0,b.H.newHeight,b.H.newWidth,b.R));E&&(0<=t.top&&(k=-1==k?t.top:Math.min(k,t.top)),b.H.resource.changeSize(b.H.newHeight,b.H.newWidth,b.R),b.H.resource.overflowCallback(!1,b.H.newHeight,b.H.newWidth,b.R),a.hb=!0);b.H.callback&&b.H.callback(E)}-1!=k&&a.setRelayoutTop(k);0=a||f.bottom>=a}function Tj(a,b){b=void 0===b?!1:b;var c=a.isDisplayed();a.measure(b);return!(c&&!a.isDisplayed())}function Uj(a,b){b.length&&a.G.mutate(function(){b.forEach(function(c){c.unload();Qj(a,c)});G().fine("Resources","unload:",b)})} function Nj(a,b){var c=b=void 0===b?Date.now():b,d=a.pa.getLastDequeueTime();return 0==a.pa.getSize()&&0==a.F.getSize()&&c>d+5E3&&0=m;if(!w)for(u=0;uk;r++)l=a.j[r],2==l.getState()&&!l.hasOwner()&&l.isDisplayed()&&l.idleRenderOutsideViewport()&&(G().fine("Resources","idleRenderOutsideViewport layout:",l.debugid),a.scheduleLayoutOrPreload(l,!1),k++);for(r=0;rk;r++)l=a.j[r],2==l.getState()&&!l.hasOwner()&&l.isDisplayed()&&(G().fine("Resources","idle layout:",l.debugid),a.scheduleLayoutOrPreload(l, !1),k++)}k=a.win.Date.now();l=-1;for(r=a.F.peek(a.rd);r;){a.Mc||(l=Vj(a,r));G().fine("Resources","peek from queue:",r.id,"sched at",r.scheduleTime,"score",a.rd(r),"timeout",l);if(!a.Mc&&16Date.now():!0;return a&&d?a.v:void 0}; gk.prototype.set=function(a,b,c){if(void 0!==this.Ba[a]){a=this.Ba[a];var d=Date.now();c&&(d=a.t);a.v=b;a.t=d}else this.Ba[a]=K({v:b,t:Date.now()});b=Object.keys(this.Ba);if(b.length>this.$g){var e=Infinity,f=null;for(c=0;c or